//===================================
//File: Rectangle.cpp
//Rectangle function
//Name: Smirnova O.P.
//Date: 22.05.12, v.1.0
//===================================




#include "Rect.h"

using namespace std;

//---------------------------------------------------------------------------


Rectangle::Rectangle()
{
	this->E = Point();
	this->F = Point();
	this->C = Point();
	this->D = Point();
	this->a = 0;
	this->b = 0;

}
Rectangle::Rectangle( Point C,  double a, double b)
{

	this->C = C;
	this->E = Point((C.getX()-b),(C.getY()-a),0);
	this->F = Point((C.getX()),(C.getY()-a),0);
	this->D = Point((C.getX()-b),(C.getY()),0);
	this->b = b;
	this->a = a;
	
}
//---------------------------------------------------------------------------
Rectangle::~Rectangle()
{
///	cout << "\n~Rectangle:\n";
	
//	cout << "~Rectangle\n";
	
}

//---------------------------------------------------------------------------
Point Rectangle::getPointC () 
{
	return C;
};
//---------------------------------------------------------------------------
Point Rectangle::getPointD () 
{
	return D;
};
//---------------------------------------------------------------------------
Point Rectangle::getPointE () 
{
	return E;
};
//---------------------------------------------------------------------------
Point Rectangle::getPointF () 
{
	return F;
};
//---------------------------------------------------------------------------
double Rectangle::getA () 
{
	return a;
};
//---------------------------------------------------------------------------
double Rectangle::getB () 
{
	return b;
};
